$Core.connectSocial = {
    _window: null,
    params: {
        name: 'Window',
        width: 800,
        height: 600,
        callback: function(data) { }
    },
    connect: function(url) {
        if (this._window == null || this._window.closed) {
            this.popup(url);
        } else {
            this._window.focus();
        }
    },
    popup: function(url) {
        this._window = window.open(url, this.params.name, this.params.width, this.params.height);
    },
    init: function(params) {
        $.extend(this.params, params);
    }
};